#include<stdio.h>
#include<stdlib.h>
int main()
{
	int* p = (int*)malloc(sizeof(int) * 10);
	if (p == NULL)
		return 1;
	for (int i = 0; i < 10; i++)
		*(p + i) = i;
	for (int i = 0; i < 10; i++)
	{
		printf("%d ", *(p + i));
	}
	free(p);
	p = NULL;
	/*while(1)
	{
		char* p = (char*)malloc(1);
	}*/
	return 0;
}